package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.entity.Brand;
import com.leyou.item.entity.MyPage;

import java.util.List;


public interface BrandService extends IService<Brand> {

    PageDTO findPyPage(MyPage myPage);

    List<BrandDTO> getBrandByIds(List<Long> ids);

    List<BrandDTO> getBrandByCategoryId(Long id);

    BrandDTO getBrandById(Long id);

    void createBrand(Brand brand, List<Long> categoryIds);

    void updateBrand(Brand brand, List<Long> categoryIds);
}
